# Makefile for OLED project

# Compiler and flags
CC = aarch64-linux-gnu-gcc
CFLAGS = -Wall -Wextra -I./src/OLED

# Source files
SRC_FILES = ./src/main.c ./src/OLED/oled.c

# Output binary
OUTPUT = ./build/oled

# Libraries
LIBS = ./lib/libc.so.6

# Targets
all: $(OUTPUT)

$(OUTPUT): $(SRC_FILES)
	$(CC) $(CFLAGS) $(SRC_FILES) -o $(OUTPUT) $(LIBS)

clean:
	rm -f $(OUTPUT)
